﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ProvinciaEdit.aspx.cs" Inherits="ProvinciaEdit" %>

<%@ Register Assembly="DevExpress.Web.v11.1, Version=11.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxCallback" TagPrefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxGridView.v11.1, Version=11.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxGridView" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxEditors.v11.1, Version=11.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v11.1, Version=11.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPopupControl" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v11.1, Version=11.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPager" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v11.1.Linq, Version=11.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Data.Linq" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Xpo.v11.1.Web, Version=11.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Xpo" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v11.1, Version=11.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxCallbackPanel" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v11.1, Version=11.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPanel" tagprefix="dx" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="~/Styles/abm.css" rel="stylesheet" type="text/css" />
</head>
<body>
    
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
    <asp:LinkButton ID="LinkButton1" runat="server" onclick="LinkButton1_Click">LinkButton</asp:LinkButton>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    <div class="gridContainer">
        <dx:ASPxGridView ID="grdAbm" runat="server" AutoGenerateColumns="False" 
            KeyFieldName="IDProvincia" 
             onafterperformcallback="grdAbm_AfterPerformCallback" 
            onrowinserting="grdAbm_RowInserting" onrowupdating="grdAbm_RowUpdating">
            <Columns>
                <dx:GridViewCommandColumn VisibleIndex="0" ShowSelectCheckbox="True"> 
                <EditButton Visible="True"></EditButton>
                <NewButton Visible="True"></NewButton>
                </dx:GridViewCommandColumn>
                <dx:GridViewDataTextColumn FieldName="Nombre" ReadOnly="True" VisibleIndex="1">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn FieldName="Abreviacion" ReadOnly="True" VisibleIndex="2">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn FieldName="ISO" ReadOnly="True" VisibleIndex="3">
                </dx:GridViewDataTextColumn>
            </Columns>
            <SettingsPager AlwaysShowPager="True">
            </SettingsPager>
        <Templates>
            <EditForm >
                <br/>
                <div>
                   <div class="labels">Nombre:</div><div class="fields"><dx:ASPxTextBox ID="txtNombre" runat="server" Text='<%# Eval("Nombre")%>'></dx:ASPxTextBox></div> 
                   <div class="labels">Abreviación:</div><div class="fields"><dx:ASPxTextBox ID="txtAbreviacion" runat="server" Text='<%# Eval("Abreviacion")%>'></dx:ASPxTextBox></div>
                   <div class="labels">ISO:</div><div class="fields"><dx:ASPxTextBox ID="txtIso" runat="server" Text='<%# Eval("ISO")%>'></dx:ASPxTextBox></div>  <br />
                   <dx:ASPxHyperLink ID="lnkSalvar" runat="server" Text="Salvar" NavigateUrl="javascript:aspxGVUpdateEdit('grdAbm');"></dx:ASPxHyperLink>
                   <dx:ASPxHyperLink ID="lnkCancelar" runat="server" Text="Cancelar" NavigateUrl="javascript:aspxGVCancelEdit('grdAbm');"></dx:ASPxHyperLink>
                 </div>
            </EditForm>
            <PagerBar>
             <dx:ASPxPager ID="pgrGrid"  runat="server" ItemsPerPage="5" ItemCount="10"   onpageindexchanged="pgrGrid_PageIndexChanged">
             </dx:ASPxPager>
            </PagerBar>
               
                
       
        </Templates>
            
        </dx:ASPxGridView>
    </div>
                    </ContentTemplate>
                   
                    </asp:UpdatePanel>
    </form>
</body>
</html>

